<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>左侧导航menu</title>
    <link href="/loveshow/Public/Css/admin/css.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="/loveshow/Public/Js/admin/sdmenu.js"></script>
    <script type="text/javascript">
        // <![CDATA[
        var myMenu;
        window.onload = function () {
            myMenu = new SDMenu("my_menu");
            myMenu.init();
        };
        // ]]>
    </script>
    <style type=text/css>
        html {
            SCROLLBAR-FACE-COLOR: #538ec6;
            SCROLLBAR-HIGHLIGHT-COLOR: #dce5f0;
            SCROLLBAR-SHADOW-COLOR: #2c6daa;
            SCROLLBAR-3DLIGHT-COLOR: #dce5f0;
            SCROLLBAR-ARROW-COLOR: #2c6daa;
            SCROLLBAR-TRACK-COLOR: #dce5f0;
            SCROLLBAR-DARKSHADOW-COLOR: #dce5f0;
            overflow-x: hidden;
        }

        body {
            overflow-x: hidden;
            background: url(/loveshow/Public/Images/admin/leftbg.jpg) left top repeat-y #f2f0f5;
            width: 194px;
        }
    </style>
</head>
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
<div id="left-top">
    <div><img src="/loveshow/Public/Images/admin/member.gif" width="44" height="44"/></div>
    <span>用户：<?php echo (session('admin_name')); ?><br>角色：<?php echo ((isset($role_name) && ($role_name !== ""))?($role_name):"超级管理员"); ?></span>
</div>

<div style="float: left" id="my_menu" class="sdmenu">
    <?php if(is_array($authp)): foreach($authp as $key=>$p): ?><div class="collapsed">
            <span><?php echo ($p['auth_name']); ?></span>
            <?php if(is_array($auths)): foreach($auths as $key=>$s): if($s['auth_pid'] == $p['id']): ?><a href="/loveshow/index.php/<?php echo ($s["auth_c"]); ?>/<?php echo ($s["auth_a"]); ?>" target="mainFrame" onFocus="this.blur()"><?php echo ($s['auth_name']); ?></a><?php endif; endforeach; endif; ?>
        </div><?php endforeach; endif; ?>
</div>

</body>
</html>